<template>
  <div>
    <div class="commom-card">
      <div class="card-item" v-for="(item,index) in lists" :key="index">
        <div class="item-left">
          <span class="box" :style="{'background-color':color}"></span>
          <span class="title">{{item.title}}</span>
        </div>
        <div class="item-right">
          <span class="num" :style="{color:color}">{{item.num}}</span>
          <span class="cam" v-if="index === 0">KW</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    lists: {
      typeof: Array,
      default: () => []
    },
    color: {
      typeof: String,
      default: '#57FFAA'
    },
    cardTitle: {
      typeof: String,
      default: ''
    }
  },
  data() {
    return {
    };
  },

  components: {},

  computed: {},

  methods: {}
};

</script>
<style scoped lang="scss">
.commom-card{
  width: 10rem;
  // height: 4.9375rem;
  border-radius: .25rem;
  background-color: #2A3A4F;
  padding: .6875rem 0;
  box-sizing: border-box;
  .card-item{
    height: .875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:0 .625rem 0;
    box-sizing: border-box;
    margin-bottom: .5rem;
    .item-left{
      display: flex;
      align-items: center;
      .box{
        width: .1875rem;
        height: .1875rem;
        border-radius: 50%;
        margin-right: .3125rem;
        display: inline-block;
      }
      .title{
        font-size: .75rem;
        color: #D8D8D8;
      }
    }
    .item-right{
      .num{
        font-size: .875rem;
        margin-right: .125rem;
      }
      .cam{
        font-size: .75rem;
        color: #8D8D8D;
      }
    }
  }
  .card-item:last-child{
    margin-bottom: 0;
  }
}
</style>
